package com.sise.bean;

import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 作者：idea
 * 日期：2018/8/26
 * 描述：
 */
@Data
public class AdminDTO {

    @NotNull
    @Size(min = 1,max = 200)
    private String username;

    @NotNull
    @Size(min = 1,max = 200)
    private String password;

    @NotNull
    @Min(18)
    @Max(100)
    private int age;
}
